<div class="dx-fieldset">
  <div class="dx-field">
    <div class="dx-field-label">Visible</div>
    <div class="dx-field-value" data-bind="dxSwitch: { value: overlayVisible }"></div>
  </div>
</div>
<div id="overlayContainer" data-bind="dxOverlay: { visible: overlayVisible, shading: false }">
  <div class="overlayContents">
    <div class="dx-fieldset">
      <div class="dx-field">
        <div class="dx-field-label">Visible</div>
        <div class="dx-field-value" data-bind="dxSwitch: { value: overlayVisible }"></div>
      </div>
    </div>
  </div>
</div>